import matplotlib.pyplot as plt
import numpy as np 

file_path = './result.csv'
data = np.genfromtxt(file_path,delimiter='::')
y_pre = data[:,-1]
y_ture = data[:,-2]
print y_ture
print y_pre
# Plot the predicted (blue) and actual (green) values
plt.figure(figsize=(12,4))
plt.plot(y_pre)
plt.plot(y_ture)
plt.title("Predicted (blue) vs Actual (green) Opening Price Changes")
plt.xlabel("Testing instances")
plt.ylabel("Change in Opening Price")
plt.show()
